Skip to main content

Button

Type

widget

Summary

This widget is a highly customizable button, maintains its appearance regardless of platform or OS.

Description

This widget is a highly customizable button, maintains its appearance regardless of platform or OS.

Compatibility and Support

OS

mac

windows

linux

ios

android

web

Platforms

desktop

mobile

Children Properties

Message

NameSummarySyntax
mouseUpSent when the user releases the mouse button.mouseUp
mouseDownSent when the user presses the mouse button.mouseDown
mouseReleaseSent when the user releases the mouse outside the control that was clicked.mouseRelease
mouseEntermouseEnter.mouseEnter
mouseLeavemouseLeave.mouseLeave
resizeControlresizeControl.resizeControl
longTouchSent when the touch persists.longTouch pButton
rippleEndSent when the ripple effect ends.rippleEnd pButton

Property

NameSummarySyntax
btnIconPathThe path data displayed by the widget as icon when the button is in its normal state.set the btnIconPath of widget to <SVGPath> get the btnIconPath of widget
pbHoverColorThe color with which the background of the button is drawn when the pointer is over it.set the pbHoverColor of widget to <RGB color> get the pbHoverColor of widget
hiliteIconFillRuleThe fill rule applied to render the hilited icon.set the hiliteIconFillRule of widget to {non-zero | even odd} get the hiliteIconFillRule of widget
showLabelSpecifies if the label of the widget is visible.set the showLabel of widget to {true | false} get the showLabel of widget
highlightSet the highlighted state of the widget.set the highlight of widget to {true | false} get the highlight of widget
shadowColorThe color with which the drop shadow is drawn.set the shadowColor of widget to <RGBA color> get the shadowColor of widget
btnIconThe name of an SVG icon, which is displayed as an icon when the button is in its normal state.set the btnIcon of widget to <IconName> get the btnIcon of widget
variantApply a predefined style to the widget.set the variant of widget to {"text"|"contained"|"raised"|"outlined"|"icon"} get the variant of widget
cursorToHandSpecifies whether to change the mouse cursor to 'hand'.set the cursorToHand of widget to {true | false}
highlightedLabelColorThe color with which the label is drawn, when the button is highlighted.set the highlightedLabelColor of widget to <RGB color> get the highlightedLabelColor of widget
borderHiliteColorThe color of the border line when the button is hilited.set the borderHiliteColor of widget to <RGB color> get the borderHiliteColor of widget
autoarmSpecifies whether a widget becomes armed when the mouse pointer moves into it.set the autoArm of widget to {true | false}
rippleEffectShows the ripple Effect when pressed or not.set the rippleEffect of widget to {true | false} get the rippleEffect of widget
pbNormalColorControls the background color of the buttonget the pbNormalColor of <widget> set the pbNormalColor of <widget> to <pColor>
showShadowWhether the widget has a shadow or not.set the showShadow of widget to {true | false} get the showShadow of widget
rippEffectShows the ripple Effect when pressed or not.set the rippEffect of widget to {true | false} get the rippEffect of widget
borderWidthThe border width of the widget.set the borderWidth of widget to <integer> get the borderWidth of widget
btnHighlightedIconPathThe path data displayed by the widget as icon when the button is in its highlighted state.set the btnHighlightedIconPath of widget to <SVGPath> get the btnHighlightedIconPath of widget
labelHiliteColorThe color with which the label is drawn, when the button is hilited.set the labelHiliteColor of widget to <RGB color> get the labelHiliteColor of widget
iconFillRuleThe fill rule applied to render the icon.set the iconFillRule of widget to {non-zero | even odd} get the iconFillRule of widget
showNameSpecifies if the label of the widget is visible.set the showName of widget to {true | false} get the showName of widget
iconThe name of an SVG icon, which is displayed as an icon when the button is in its normal state.set the icon of widget to <IconName> get the icon of widget
highlightedIconFillRuleThe fill rule applied to render the highlighted icon.set the highlightedIconFillRule of widget to {non-zero | even odd} get the highlightedIconFillRule of widget
autoHiliteSpecifies whether a PowerButton widget highlights when it's pressed.set the autoHilite of widget to {true | false}
showIconDividerSpecifies whether the widget (Button) icon divider is visible.set the showIconDivider of widget to {true | false} get the showIconDivider of widget
iconRotationRotate the icon.set the iconRotation of widget to {true | false} get the iconRotation of widget
hiliteTransparentBackgroundSpecifies whether the background of a button is transparent when its state is hilited.set the hiliteTransparentBackground of widget to {true | false} get the hiliteTransparentBackground of widget
rippleColorControls the color of the ripple effect.get the rippleColor of <widget> set the rippleColor of <widget> to <RGBA Color>
borderHoverColorThe color of the border line.set the borderHoverColor of widget to <RGB color> get the borderHoverColor of widget
labelColorThe color with which the label is drawn.set the labelColor of widget to <RGB color> get the labelColor of widget
opaqueMake the widget background solid.set the opaque of widget to {true | false} get the opaque of widget
iconSizeSet the iconSize.set the iconSize of widget to <Integer> get the iconSize of widget
autoHoverSpecifies whether a widget becomes armed when the mouse pointer moves into it.set the autoHover of widget to {true | false}
labelVOffsetVertical offset of the label.set the labelVOffset of widget to <integer> get the labelVOffset of widget
highlightedIconColorThe color with which the icon is drawn, when the button is highlighted.set the highlightedIconColor of widget to <RGB color> get the highlightedIconColor of widget
labelThe label displayed by the button.set the label of widget to pLabel get the label of widget
textAlignmentSpecifies the alignment that the text displayed in the label has with respect to the sides of the button.set the textAlignment of widget to {center | left | right | top | bottom} get the textAlignment of widget
highlightedIconRotationRotate the icon when button is highlighted.set the highlightedIconRotation of widget to {true | false} get the highlightedIconRotation of widget
hiliteIconColorThe color with which the icon is drawn, when the button is hilited.set the hiliteIconColor of widget to <RGB color> get the hiliteIconColor of widget
labelHOffsetHorizontal offset of the label.set the labelHOffset of widget to <integer> get the labelHOffset of widget
iconHOffsetHorizontal offset of the icon.set the iconHOffset of widget to <integer> get the iconHOffset of widget
iconVOffsetVertical offset of the icon.set the iconVOffset of widget to <integer> get the iconVOffset of widget
iconPositionSpecifies the alignment that the icon has with respect to the sides of the button.set the iconPosition of widget to {left | right | top | bottom} get the iconPosition of widget
normalColorControls the background color of the buttonget the normalColor of <widget> set the normalColor of <widget> to <pColor>
fillGradientSpecifies the gradient to use to fill the Button object in its normal state (Experimental)set the fillGradient of widget to <Array> get the fillGradient of widget
lineSizeThe line size of the widget.set the lineSize of widget to <integer> get the lineSize of widget
isToggleSpecifies whether a button stays hilited after being pressed.set the isToggle of widget to {true | false} get the isToggle of widget
hiliteFillGradientSpecifies the gradient to use to fill the PowerButton object when it is hilited(Experimental)set the hiliteFillGradient of widget to <Array> get the hiliteFillGradient of widget
hiliteColorControls the color of the button.get the hiliteColor of <widget> set the hiliteColor of <widget> to <pColor>
hiliteIconThe name of an SVG icon, which is displayed as an icon when the button is in its hilited state.set the hiliteIcon of widget to <IconName> get the hiliteIcon of widget
iconHoverColorThe color with which the icon is drawn when the pointer is over the button.set the iconHoverColor of widget to <RGB color> get the iconHoverColor of widget
roundHeightThe radius of the widget background edges.set the roundHeight of widget to <integer> get the roundHeight of widget
transparentBackgroundSpecifies whether the background of a button is transparent when its state is normal.set the transparentBackground of widget to {true | false} get the transparentBackground of widget
highlightedBorderColorThe color of the border line when the button is highlighted.set the highlightedBorderColor of widget to <RGB color> get the highlightedBorderColor of widget
hoverWhenHilitedAllows the mouse hover effect to be generated when the button has the toggle property active.set the hoverWhenHilited of widget to {true | false} get the hoverWhenHilited of widget
highlightedTransparentBackgroundSpecifies whether the background of a button is transparent when its state is highlighted.set the highlightedTransparentBackground of widget to {true | false} get the highlightedTransparentBackground of widget
pbHiliteColorControls the color of the button.get the pbHiliteColor of <widget> set the pbHiliteColor of <widget> to <pColor>
marginSpecifies how much empty space is left on each side between the borders of the widget and its icon and label.set the margin of widget to <integer> get the margin of widget
highlightedLabelSpecifies the string to display in the text label that is drawn on the widget when its state is Highlighted.set the highlightedLabel of widget to <labelString> get the highlightedLabel of widget
showIconSpecifies whether the widget (Button) icon is visible.set the showIcon of widget to {true | false} get the showIcon of widget
iconColorThe color with the icon is drawn when the button is in its normal state.set the iconColor of widget to <RGB color> get the iconColor of widget
centerElementsSpecifies whether the icon and label of the widget (Button) are pushed to the center.set the centerElements of widget to {true | false} get the centerElements of widget
hiliteIconPathThe path data displayed by the widget as icon when the button is in its hilited state.set the hiliteIconPath of widget to <SVGPath> get the hiliteIconPath of widget
centerRippleEffectSets the ripple effect origin to the widget's center.set the centerRippleEffect of widget to {true | false} get the centerRippleEffect of widget
autohilightSpecifies whether a PowerButton widget highlights when it's pressed.set the autoHilight of widget to {true | false}
RRadius
wrapTextWrap text to match available width.set the wrapText of widget to {true | false} get the wrapText of widget
hiliteIconRotationRotate the icon when button is hilited.set the hiliteIconRotation of widget to {true | false} get the hiliteIconRotation of widget
hiliteSet the hilite state of the widget.set the hilite of widget to {true | false} get the hilite of widget
isHilitedSet the highlighted state of the widget.set the isHilited of widget to {true | false} get the isHilited of widget
iconPathThe path data displayed by the widget as icon when the button is in its normal state.set the iconPath of widget to <SVGPath> get the iconPath of widget
hiliteLabelSpecifies the string to display in the text label that is drawn on the widget when its state is hilited.set the hiliteLabel of widget to <labelString> get the hiliteLabel of widget
roundRadiusThe radius of the widget background edges.set the roundRadius of widget to <integer> get the roundRadius of widget
hoverFillGradientSpecifies the gradient to use to fill the PowerButton object when the mouse is hovering (Experimental)set the hoverFillGradient of widget to <Array> get the hoverFillGradient of widget
hiliteBtnColorControls the color of the button.get the hiliteBtnColor of <widget> set the hiliteBtnColor of <widget> to <pColor>
labelToUpperTransform the label to upper case.set the labelToUpper of widget to {true | false} get the labelToUpper of widget
roundedRadius
hoverIconColorThe color with which the icon is drawn when the pointer is over the button.set the hoverIconColor of widget to <RGB color> get the hoverIconColor of widget
hoverLabelColorThe color with which the label is drawn when the pointer is over the button.set the hoverLabelColor of widget to <RGB color> get the hoverLabelColor of widget
btnHighlitedIconThe name of an SVG icon, which is displayed as an icon when the button is in its highlighted state.set the btnHighlitedIcon of widget to <IconName> get the btnHighlitedIcon of widget
hoverBorderColorThe color of the border line.set the hoverBorderColor of widget to <RGB color> get the hoverBorderColor of widget
textAlignSpecifies the alignment that the text displayed in the label has with respect to the sides of the button.set the textAlign of widget to { left | center | right } get the textAlign of widget
hoverColorThe color with which the background of the button is drawn when the pointer is over it.set the hoverColor of widget to <RGB color> get the hoverColor of widget
labelHoverColorThe color with which the label is drawn when the pointer is over the button.set the hoverLabelColor of widget to <RGB color> get the hoverLabelColor of widget
hoverTransparentBackgroundSpecifies whether the background of a button is transparent when the mouse pointer enters the button.set the hoverTransparentBackground of widget to {true | false} get the hoverTransparentBackground of widget
pbShadowColorThe color with which the drop shadow is drawn.set the pbShadowColor of widget to <RGBA color> get the pbShadowColor of widget